<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Proxy
 *
 * @author Andriy
 */
class Proxy
{
    
    protected $_proxy_list = array(
		'187.16.247.238:8080',
        '196.201.211.145:80',
		'174.129.9.79:8088',
		'174.129.247.49:3129',
		'209.59.247.104:3128',
		'213.175.214.202:3128',
		'91.120.21.169:80',
		'189.26.236.87:3128',
		'81.89.48.121:8080',
		'109.86.220.228:3128',
		'202.43.35.20:3128',
		'186.225.39.86:8080',
		'200.42.56.146:8080',
		'87.110.190.98:8080'
    );
    
    protected function _getRandomIndex()
    {
        return rand( 0, count( $this->_proxy_list ) - 1 );
    }


    public function getProxy()
    {
        $proxy = $this->_proxy_list[ $this->_getRandomIndex() ];
        return $proxy;
    }
    
}

?>
